import request from '@/utils/request'

// 查询考试合格学员列表
export function listCertificateInformation(query) {
  return request({
    url: '/student/certificateInformation/list',
    method: 'get',
    params: query
  })
}

// 查询考试合格学员详细
export function getCertificateInformation(id) {
  return request({
    url: '/student/certificateInformation/' + id,
    method: 'get'
  })
}

// 新增考试合格学员
export function addCertificateInformation(data) {
  return request({
    url: '/student/certificateInformation',
    method: 'post',
    data: data
  })
}

// 修改考试合格学员
export function updateCertificateInformation(data) {
  return request({
    url: '/student/certificateInformation',
    method: 'put',
    data: data
  })
}

// 删除考试合格学员
export function delCertificateInformation(id) {
  return request({
    url: '/student/certificateInformation/' + id,
    method: 'delete'
  })
}
